package ngat.oss;

import ngat.message.OSS.*;

import java.io.*;

/** 
 * Action: This is used to return a number of Blocks of data for test purposes.
 * Currently it does nothing.
 */
public class NETWORK_TESTImpl extends TransactionImpl implements Serializable {
    
    protected int blocks;
    
    /** Create a NETWORK_TESTImpl to handle the specified request.*/
    public NETWORK_TESTImpl (NETWORK_TEST request) {
	super(request);
	blocks = request.getBlocks();
    }
    
    /**
     * Create data to return;
     * @return An array of data.
     */
    public TRANSACTION_DONE exec() {
	NETWORK_TEST_DONE done = new NETWORK_TEST_DONE(id);
	done.setSuccessful(true);
	return done;
    }
   
}
